﻿@model IEnumerable<VedranKrizicPortfolio.Models.Skills>

@{
    ViewBag.Title = "Skill List";
}

<div style="padding: 15px;">
<h2>Skill List</h2>

    <p style="float: right; clear: right;">
        @Html.ActionLink("New", "SkillNew")
    </p>
<table style="width: 100%; border-top: 2px solid black;">
    <tr>
        <th>
            Skill Name
        </th>
        <th>
            Rate
        </th>
        <th>
            Order
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr style="border-bottom: 1px solid #555555;">
        <td>
            @Html.DisplayFor(modelItem => item.SkillName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Rate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Order)
        </td>
        <td>
            @Html.ActionLink("Edit", "SkillEdit", new { id=item.id }) |
            @Html.ActionLink("Delete", "SkillDelete", new { id=item.id })
        </td>
    </tr>
}

</table>
<br />@Html.ActionLink("Back to Administration", "Index")
</div>